package ru.jexp.rcp.supply.beans.ek;

import org.eclipse.jface.viewers.CheckboxTreeViewer;
import org.eclipse.swt.widgets.Composite;

import ru.jexp.rcp.supply.mui.JExpSupplyMessages;
import ru.jexp.rcp.supply.n.ColumnPair;

public class ElementKomplektaciiViewer extends CheckboxTreeViewer
{
	
	public ElementKomplektaciiViewer(Composite parent)
	{
		super(parent);
		getTree().setHeaderVisible(true);
		getTree().setLinesVisible(true);
		ColumnPair.createTreeColumn(this, createColumn());
	}
	
	private ColumnPair[] createColumn()
	{
		return new ColumnPair[] {	ColumnPair.string(JExpSupplyMessages.Ek_column_name),
									ColumnPair.string(JExpSupplyMessages.Ek_column_dvs),
									ColumnPair.deciaml(JExpSupplyMessages.Ek_column_kolvo),
									ColumnPair.string(JExpSupplyMessages.Ek_column_edizmer),
									ColumnPair.string(JExpSupplyMessages.Ek_column_pf),
									ColumnPair.string(JExpSupplyMessages.Ek_column_supply),
									ColumnPair.date(JExpSupplyMessages.Ek_column_date_izgotovlenia),
									ColumnPair.date(JExpSupplyMessages.Ek_column_date_postavki) };
	}

}
